package net.jonbuck.tassoo.eventmanager.events;

import net.jonbuck.tassoo.eventmanager.exception.UnsupportedListenerException;
import net.jonbuck.tassoo.eventmanager.listener.AttachmentTypesUpdateListener;

/**
 * 
 * 
 * @since 1.0.0
 */
public class AttachmentTypesUpdatedEvent implements TassooEvent {

	/**
	 * 
	 */
	public void dispatchEvent(Object listener) {
		if (listener instanceof AttachmentTypesUpdateListener) {
			final AttachmentTypesUpdateListener eventListener = (AttachmentTypesUpdateListener) listener;
			eventListener.processAttachmentTypesUpdatedEvent();
		} else {
			throw new UnsupportedListenerException("", "Message");
		}
	}
	
}
